<%@ page language="java" import="java.util.*, dtt.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
  ArrayList projectBeanList = (ArrayList) request.getAttribute("projectBeanList");

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>LUC Defect Tracking Tool - Project List</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="styles.css">
	
  </head>
  
  <body>
  <br>
    <table valign="top" border="1" align="center" width="85%">
      <tr>
      <th>Project No</th><th>Project Name</th>
      <th>Project Description</th>
      </tr>
      
      
      
      
    <%
   
        Iterator itr = projectBeanList.iterator();
        while(itr.hasNext()){
        ProjectBean project = (ProjectBean) itr.next();
        %>
        <tr> 
        <td><a href="servlet/FrontController?DTT_ACTION=DEFECT_LIST&projectId=<%= project.getProjectId() %>"> <%= project.getProjectId() %> </a></td>
        <td> <%= project.getProjectNbr() %> </td>
        <td> <%= project.getProjectDesc() %> </td>
        <td><a href="servlet/FrontController?DTT_ACTION=PROJECT_EDIT_FORM&projectId=<%= project.getProjectId() %>">Manage</a></td>
        </tr>
               
        <%
        } //end while
       %>
      
    </table>
  </body>
</html>
	